// let row = 5
// let column_count = 10
// let char = 'a'

let input_arr = ['10 a']




let arr = input_arr[0].split(' ')
let column_count = parseInt(arr[0])
let row_count = Math.round(column_count / 2)
let char = arr[1]

for(let i=0; i<row_count; i++){
    for(let j=0; j<column_count;j++){
        process.stdout.write(char)
    }
    console.log();
}